-- GENERATED SPELL FOR [Deviate Dreadfang] --


function spell0_5056(pUnit, Event) --@Terrify,n/a--
pUnit:FullCastSpellOnTarget(7399,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5056', 4278, 1)
end

function Sorts_5056(pUnit, Event)
local choix_sorts_5056 = math.random(0, 0)
if choix_sorts_5056 == 0 then
pUnit:RegisterEvent('spell0_5056', 1, 1)
end
end

function mob5056_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5056', math.random(1500, 3000), 1)
end

function mob5056_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5056_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5056_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5056, 1, 'mob5056_Action')
RegisterUnitEvent(5056, 2, 'mob5056_Leave')
RegisterUnitEvent(5056, 3, 'mob5056_Kill')
RegisterUnitEvent(5056, 4, 'mob5056_Die')
